package zw.car.server;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import zw.car.server.netty.NettyServer;

import javax.annotation.Resource;

@SpringBootApplication
public class ServerApplication implements CommandLineRunner {
	@Resource
	private NettyServer nettyServer;
	public static void main(String[] args) {
		SpringApplication.run(ServerApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		nettyServer.start();
	}
}
